Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated API calls #181

Merged
merged 2 commits into from
Jan 4, 2023
Merged

Replace deprecated API calls #181

merged 2 commits into from
Jan 4, 2023

Conversation

offa
Copy link
Contributor

@offa offa commented Dec 23, 2022

Removes deprecated method calls and Acegi Security.


  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@offa offa requested a review from a team as a code owner December 23, 2022 08:24
Comment on lines 542 to +545
for (final SCMEventListener l : ExtensionList.lookup(SCMEventListener.class)) {
SecurityContext context = ACL.impersonate(ACL.SYSTEM);
try {
fire(l, event);
} catch (LinkageError e) {
log(l, e);
} catch (Error e) {
throw e;
} catch (Throwable e) {
log(l, e);
} finally {
SecurityContextHolder.setContext(context);
try (ACLContext ctx = ACL.as2(ACL.SYSTEM2)) {
try {
fire(l, event);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jglick jglick added the chore label Jan 4, 2023
@jglick jglick merged commit 7e729d0 into jenkinsci:master Jan 4, 2023
@offa offa deleted the deprecations branch January 4, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants